<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>当当—网上购物中心：图书、母婴、美妆、家居、数码、家电、服装、鞋包等，正品低价，货到付款</title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/list.css"/>
		<!--分页-->
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/list/reset.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/list/pagination.css"/>
		<script src="./Public/Home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>

		<script src="./Public/Home/js/list/jquery.pagination.js" type="text/javascript" charset="utf-8"></script>
		
		<script src="./Public/Home/js/index.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.list_right span .grey{
				background: #B09F9F;
  				color: #fff;
			}
			.list_right span a:hover{
				background: #B09F9F;
  				color: #fff;
			}
		</style>
	</head>
	<body>
		{{include file = '../Common/header'}}
		    
		<!--列表页-->
		<div id="list">
			<dl>
				<dt>你是不是想找:</dt>
				{{if value="isset($shopOrder)"}}
					{{foreach from="$shopOrder" value="$v"}}
						<dd><a href="{{U('Content/index',array("aid"=>$v['aid'],'bid'=>$v['brand_bid']))}}">{{$v['shopname']}}</a></dd>
					{{endforeach}}
				{{endif}}
			</dl>
		</div>	
		<div id="shoping">
			<ul class="shop_ul">
				<li class="shop">
					<a href="JavaScrpt:;">全部商品</a>
				</li>
			</ul>
		</div>
		<div id="crumbs">
			<div class="cate">
				<a href="{{U('ListPage/index',['cid'=>$cids])}}">全部</a>
				<span class="sp">></span>
				<span class="lshi"></span>
				{{if value="isset($number)"}}<span class="">共{{$number}}件商品</span>
				{{else}}
					<span class="">共0件商品</span>
				{{endif}}
			</div>
		</div>
		<div id="filtrate_list">
			<ul>
				
				{{foreach from="$finalAttr" key="$k" value="$value"}}
				<?php
					//1.
					$temp = $param;
//					点击不限把值重新设置为0	0_175_173_174_171
					$temp[$k] = 0;
				?>
				<li>
					<div class="list_left">
					{{$value['name']}}
					</div>
						<div class="list_right">
							<span>
								<a href="JavaScript:;" {{if value="$param[$k] eq 0"}}class="grey"{{endif}}>不限</a>
							</span>
							{{foreach from="$value['value']" value="$v"}}
								<?php
													//商品属性表主键2
									$temp[$k] = $v['gtid'];
								?>
							<span>
								<a href="JavaScript:;" {{if value="$v['gtid'] eq $param[$k]"}}class="grey"{{endif}}>{{$v['gtvalue']}}</a>
								</span>
							{{endforeach}}
						</div>

					<div class="fix_list">
						<!--<a href="JavaScrpt:;">更多<i></i></a>-->
					</div>
				</li>
				{{endforeach}}
			</ul>
			<div class="btn_line">
				<!--<a href="JavaScrpt:;">更多选项<i></i></a>-->
			</div>
			<div class="soring_top">
				<ul>
					<li><a href="JavaScrpt:;">默认排序</a></li>
					<!--<li class="tools_to_float"><a href="JavaScrpt:;">销售<i></i></a></li>
					<li class="tools_to_float"><a href="JavaScrpt:;">价格<i></i></a></li>
					<li class="tools_to_float"><a href="JavaScrpt:;">上架时间<i style="right: 0px;"></i></a></li>-->
					<!--<li class="prices"><a href="JavaScrpt:;">价格<i class="pre"></i></a></li>-->
					<!--<li class="soring_middle">
						<div class="inner">
							<input type="text" name="low_price" id="" class="text_left" value="" />
							<span>-</span>
							<input type="text" name="hign_price" id="" class="text_right" value="" />
						</div>
					</li>-->
					<!--<li class="select_box">
						<div class="psz">配送至：</div>
						<span class="psz_add">
							北京
						</span>
					</li>-->
				</ul>	
				<div class="data">
					
				</div>
			</div>
		</div>
		
		<!--列表页-->
		
			<!--商品区块-->
		<div id="box">
			<div id="shoplist">
				<ul class="shoplist_ul">
					{{if value="isset($finalData)"}}
						{{foreach from="$finalData" value="$v"}}
							<li>
								<a target="_blank" href="{{U('Content/index',array("aid"=>$v['aid'],'bid'=>$v['brand_bid']))}}"><img src="{{$v['pic']}}"/></a>
								<span>¥{{$v['shopprice']}}</span>
								{{if value="$v['marketprice'] neq 0"}}<span class="marketprice">¥{{$v['marketprice']}}</span>{{endif}}
								<p>{{$v['shopname']}}</p>
								<p class="level">
									<span class="xing"></span>
								</p>
								<a class="pinglun" target="_blank" href="JavaScript:;">{{$v['click']}}条点击数</a>
								<p class="dianpu"><i></i><a target="_blank" href="{{U('Content/index',array("aid"=>$v['aid'],'bid'=>$v['brand_bid']))}}" class="stop">{{$v['bname']}}旗舰店</a></p>
							</li>
						{{endforeach}}
					{{else}}
					<div style="width: 960px;height: 130px;">
						<div style="width: 460px;height: 130px;margin: auto;">
							<i style="width: 46px;height: 46px;margin-top:40px;display:block;float:left;background: url(./Public/Home/images/listImages/6.png) no-repeat"></i>
							<h2 style="font-size: 18px;line-height: 30px;color: #333;font-weight: 400;padding-top: 40px;padding-left: 60px;font-family: 'Microsoft Yahei';">筛选条件太多了，没有找到相关商品</h2>
							<a href="JavaScript:history.back();" style="font-size: 16px;color: #1a66b3;font-family: 'Microsoft Yahei';padding-left: 15px;">返回上一步</a>
						</div>
						
					</div>
					
					
					{{endif}}
				</ul>
				
				<!--跳转分页-->
				    <div class="pages">
				        <div id="Pagination">
				        	
				        </div>
				        <div class="searchPage">
				          <span class="page-sum">共<strong class="allPage">1</strong>页</span>
				          <span class="page-go">跳转<input type="text">页</span>
				          <a href="javascript:;" class="page-btn">GO</a>
				        </div>
				    </div>
			    <script type="text/javascript">
					$(document).ready(function() {
						$("#Pagination").pagination("1");
					});
				</script>
			    
			</div>
			
		
		
			<!--商品区块-->
			
			<!--推广商品-->
			<div id="product">
				<h3>推广商品</h3>
				<ul class="product_ul">
					{{foreach from="$shopOrder" value="$v"}}
					<li>
						<a target="_blank" href="{{U('Content/index',array("aid"=>$v['aid'],'bid'=>$v['brand_bid']))}}">
							<img src="{{$v['pic']}}"/>
							<p>{{$v['shopname']}}</p>
						</a>
						<p class="red">首页领券更划算</p>
						<p class="price_p">¥{{$v['shopprice']}}</p>
					</li>
					{{endforeach}}
				</ul>
				<p class="tui"><a href="">我要推广>></a></p>
			</div>
			<!--固定推广商品-->
		</div>
		<!--推广商品结束-->
	
		{{include file="../Common/footer"}}
	</body>
</html>
